package com.hangzhou.welbeing.welbeinginstrument.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import com.hangzhou.welbeing.welbeinginstrument.factory.ReleaseTrueCicleFragmentFactory;

/**
 * 杭州惟君医疗科技有限公司14
 * Created by 20433 on 2018/2/1
 */

public class ReleaseTrueCicleAdapter extends FragmentPagerAdapter {


    private  String[] arr = new String[]{"最新","最热"};
    public ReleaseTrueCicleAdapter(FragmentManager fm) {
        super(fm);
    }

    @Override
    public Fragment getItem(int position) {

        return ReleaseTrueCicleFragmentFactory.CreateCircleObject(position);
    }

    @Override
    public int getCount() {
        return arr.length;
    }

    @Override
    public CharSequence getPageTitle(int position) {
        return arr[position];
    }
}
